const { jwtHeaderDefine } = require('../utils/router-helper')

const routes = [
    {
        method: "GET",
        path: "/",
        handler: (request, reply) => {
            console.info(request.auth.credentials)
            reply('hello hapi')
        },
        config: {
            tags: ['api', 'tests'],
            description: '测试hapi',
            validate: {
                ...jwtHeaderDefine
            }
        }
    }
]

module.exports = routes